package com.cvmars.jianyou.module.activity

import android.support.v7.app.AppCompatActivity
import android.os.Bundle
import android.view.View
import android.widget.Button
import android.widget.Toast
import com.cvmars.jianyou.R
import com.cvmars.jianyou.model.UserModel
import com.cvmars.jianyou.utils.ToastUtils
import kotlinx.android.synthetic.main.activity_test_kotlin.*

class TestKotlinActivity : AppCompatActivity() {


    private lateinit var button: Button

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_test_kotlin)

//        button = findViewById(R.id.btn_login)
        btn_login.setOnClickListener(View.OnClickListener {

            ToastUtils.show(onCick())
        })

    }


    fun onCick() : String {



        return "hello world"
    }
}
